import { createAPI } from '@/utils/request'
// 获取车辆类型信息列表
export const _getVehicleList = () => createAPI(`/truckType/simple`, 'get')
// 获取车辆分页数据
export const _getVehicleSel = data => createAPI(`/truck/page`, 'get', data)
// 添加车辆
export const _postVehicleAdd = data => createAPI(`/truck`, 'post', data)
// 启用车辆
export const _qiyong = id => createAPI(`/enable/${id}`, 'put')
// 获取绑定司机
export const _sijibangding = truckId => createAPI(`/bindingDrivers/${truckId}`, 'get')
// 车辆绑定司机
export const _onDrivers = data => createAPI(`/truck/truckDrivers`, 'post', data)
// 停用车辆
export const _tingyong = id => createAPI(`/disable/${id}`, 'put')
